# Contributor: Fabricio Silva <hi@fabricio.dev>
# Maintainer: Fabricio Silva <hi@fabricio.dev>
pkgname=py3-natpmp
pkgver=1.3.2
pkgrel=1
pkgdesc="NAT-PMP client library for Python"
url="https://github.com/jaraco/nat-pmp"
arch="noarch"
license="MIT"
depends="py3-netifaces"
makedepends="
	py3-gpep517
	py3-setuptools_scm
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jaraco/nat-pmp/archive/v$pkgver.tar.gz"
builddir="$srcdir"/nat-pmp-$pkgver
options="!check" # no tests

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
92e211038042c0d8ea07b4d69c4e9c40abdcd7bcb3b21d14ba6cb98104d13606acf14a227af1754d4378791a22e6651e2333f97036bab41c36f688ce7935a8af  py3-natpmp-1.3.2.tar.gz
"
